package com.hna.face.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 组织信息表
 * </p>
 *
 * @author wx
 * @since 2017-06-25
 */
@TableName("bf_org")
public class BfOrg extends Model<BfOrg> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	private Long id;

	/**
	 * 上级节点ID
	 */
	private Long pid;
	
	
	@TableField("pid")
	private Long _parentId;

	public Long get_parentId() {
		return _parentId;
	}

	public void set__parentId(Long _parentId) {
		this._parentId = _parentId;
	}
	

	/**
	 * 组织结构名称
	 */
	private String name;

	/**
	 * 组织结构编码
	 */
	private String code;

	/**
	 * 排序号
	 */
	private Integer sort;

	/**
	 * 启用、禁用
	 */
	private Integer status;
	
	
	private Integer level;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getPid() {
		return pid;
	}

	public void setPid(Long pid) {
		this.pid = pid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		// TODO Auto-generated method stub
		return null;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

}
